.headerContainer {
  padding: 0 120px;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
  &.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff; // 背景色变为白色
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    .navs {
      a {
        text-decoration: none;
        color: #202020 !important; // 设置文字颜色为 #202020
      }
    }

    .logo-text {
      color: #202020 !important; // 确保 logo 文本颜色也变为 #202020
    }

    .drawer-login-button {
      color: #202020 !important; // 登录按钮文字颜色
      background-color: #f5f5f5 !important; // 可选：调整按钮背景色
    }
  
  }

  .headerContent {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    .navs {
      width: 35%; // 确保 navs 容器在移动端占满宽度;
      ul {
        list-style-type: none;
        padding: 0;
        display: flex;
        justify-content: center;
        margin: 0;
      }

      li {
        margin: 0 10px;
      }

      a {
        text-decoration: none;
        color: currentcolor;
      }
    }
  
    .logo {
      width: 100%; // 确保 logo 容器在移动端占满宽度
      max-width: 285px; // 限制最大宽度
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      overflow: hidden; // 防止内容溢出

      img {
        width: auto;
        max-width: 100%; // 确保图片在移动端不会超出容器
        height: 48px;
      }

      .line {
        display: block;
        width: 1px;
        height: 36px;
        background-color: currentcolor;
      }
    

      .logo-text {
        font-family: Roboto;
        font-size: 14px; // 调整字体大小以适配移动端
        font-weight: 400;
        line-height: 20px;
        margin: 0;
        padding: 0;
        text-align: left;
        white-space: nowrap; // 防止文字换行
        overflow: hidden; // 隐藏超出部分
        text-overflow: ellipsis; // 添加省略号
      }
    }
  }
}

// 针对移动端的媒体查询
@media (max-width: 768px) {
  .headerContainer {
    padding: 0 10px; // 减小左右内边距以适配小屏幕
    &.scrolled {
      .menu-icon {
        color: '#f202020' !important; // 滚动时强制设置颜色
      }
    }
 
    .headerContent {
      display: flex;
      justify-content: space-between; // 垂直排列内容
      align-items: center;

      .logo {
        max-width: 100%; // 确保 logo 在小屏幕上占满宽度
        justify-content: center; // 居中对齐
        img{
          height: 18px;
        }
       
      }
    }
  
  }
}

/* Drawer 样式 */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  // background-color: #f5f5f5;
  // border-bottom: 1px solid #ddd;
 
  .drawer-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }


  .drawer-login-button {
    background-color: #d1b379;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;

    &:hover {
      background-color: #bfa06f;
      color: #fff;
    }
   
  }
}
.drawer-container{
  .ant-drawer-body{
    padding: 20px 16px !important; 
  }
  li{
    margin: 10px 0 !important;
    a {
      color: #202020 !important;
      font-weight: 600;
      font-size: 16px;
    }
  } 
  
}